<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditColors.ascx.cs" Inherits="Beta_fundies_controls_admin_Colors_EditColors" %>
<asp:GridView runat="server" ID="gridColors"
    Width="100%"
    AutoGenerateColumns="false">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <p>
                    YearMonth (yyyy/MM): <asp:TextBox runat="server" ID="txtYearMonth"
                        Text='<%# Helpers.StringHelper.SafeFormat(Eval("YearMonth")) %>' />
                </p>
                <p>
                    Color: <asp:TextBox runat="server" ID="txtColor"
                        Text='<%# Helpers.StringHelper.SafeFormat(Eval("Color")) %>' />
                </p>
                <p>
                    <asp:Button runat="server" ID="btnSave"
                        Text="Save"
                        CommandArgument='<%# Helpers.StringHelper.SafeFormat(Eval("ID")) %>'
                        OnCommand="SaveColor" />
                </p>
                <hr />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>    
</asp:GridView>